﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.Service.Restriction.Utility
{
    public static class StringUtility
    {
        public static string ToString(object obj)
        {
            return ToString(obj, "");
        }

        public static string ToString(object obj, string defaultString)
        {
            if (obj == null || obj is DBNull) {
                return defaultString;
            }
            return obj.ToString();
        }
    }
}
